package org.jiulou.web;

import java.util.Locale;

import org.jiulou.util.DatetimeUtil;
import org.jiulou.vo.Rtn;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

@Controller
@RequestMapping(value = "/admin")
public class AdminIndexController{

    //private static transient final Logger log = LoggerFactory.getLogger(IndexController.class);
	
	@RequestMapping
	public ModelAndView index(Model model,Locale locale) {
		
		Rtn rtn = new Rtn();
		rtn.setCode(Rtn.SUCCESS_CODE);
		model.addAttribute("rtn", rtn);
		model.addAttribute("controllerSuccessedTime", DatetimeUtil.nowStr());
		
		return new ModelAndView("admin.index.tiles",model.asMap());
	}
}